package fr.webeo.teambuilder.gui;

import javax.swing.JPanel;

import fr.webeo.teambuilder.ao.AbstractModel;

/**
 * The class <strong>AbstractPanel</strong>.
 * 
 * @author Sébastien Bordes
 * @version $Revision$ $Date$ $Name$
 * 
 * @since fr.webeo.teambuilder 1.0
 */
public abstract class AbstractPanel extends JPanel {

    /** . */
    private AbstractModel model;

    /**
     * 
     *
     */
    public AbstractPanel(AbstractModel model) {
        setModel(model);
        init();
    }

    /**
     * 
     * <p>
     * TODO To complete.
     * </p>
     * 
     * @since TeamBuilder 1.0
     */
    public abstract void init();

    /**
     * 
     * <p>
     * TODO To complete.
     * </p>
     * 
     * @since TeamBuilder 1.0
     */
    public abstract void reload();

    /**
     * @return Returns the model.
     */
    public AbstractModel getModel() {
        return this.model;
    }

    /**
     * @param model The model to set.
     */
    public void setModel(AbstractModel model) {
        this.model = model;
    }
}
